-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[APM] Fixes support for APM index pattern with data streams #105360
[APM] Fixes support for APM index pattern with data streams #105360
Conversation
@@ -39,7 +39,7 @@ import { getDefaultDynamicProperties } from '../../../styles/vector/vector_style | |||
|
|||
// redefining APM constant to avoid making maps app depend on APM plugin | |||
export const APM_INDEX_PATTERN_ID = 'apm_static_index_pattern_id'; | |||
export const APM_INDEX_PATTERN_TITLE = 'apm-*'; | |||
export const APM_INDEX_PATTERN_TITLE = 'traces-apm*,logs-apm*,metrics-apm*,apm-*'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this use of APM_INDEX_PATTERN_TITLE is going to need to be updated with this change, https://github.com/elastic/kibana/blob/master/x-pack/plugins/maps/public/classes/layers/solution_layers/security/create_layer_descriptors.ts#L38
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've updated the test with the new labels based on the index pattern title. Is there any other the new pattern should be handled?
- tests each component of index pattern title for index matches This reverts commit a3a27df.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, code review
💚 Build SucceededMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
…105360) * [APM] Fixes support for APM index pattern with data streams (elastic#94702) * fix unit test * - Revert "fix unit test" - tests each component of index pattern title for index matches This reverts commit a3a27df.
…105360) * [APM] Fixes support for APM index pattern with data streams (elastic#94702) * fix unit test * - Revert "fix unit test" - tests each component of index pattern title for index matches This reverts commit a3a27df.
…#105535) * [APM] Fixes support for APM index pattern with data streams (#94702) * fix unit test * - Revert "fix unit test" - tests each component of index pattern title for index matches This reverts commit a3a27df. Co-authored-by: Oliver Gupte <[email protected]>
…#105536) * [APM] Fixes support for APM index pattern with data streams (#94702) * fix unit test * - Revert "fix unit test" - tests each component of index pattern title for index matches This reverts commit a3a27df. Co-authored-by: Oliver Gupte <[email protected]>
Addresses #94702.
Fixes maps support for the APM data streams, which would contain geo data of traces if a user migrates in the APM settings (#102682, #105015).